import { HashRouter as Router } from 'react-router-dom'
import routes from  "./router/autoRoutes"
import Compile from './router/compile'

import Base from './layout'
import './App.css'

/* DatePicker中文化 */
import local from 'antd/lib/locale/zh_CN'
import { ConfigProvider }  from 'antd'
import moment from 'moment'
import 'moment/locale/zh-cn'
moment.locale('zh-cn')

export default function App() {
  return (
    <ConfigProvider locale={local}>
      <Router>
        <Base>
          <Compile routes={routes} />
        </Base>
      </Router>
    </ConfigProvider>
  )
}
